package com.xiyou.weblog.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author xiyou
 * @description 业务异常（Business）
 */
@Getter
@Setter
public class BizException extends RuntimeException{

    //异常码
    private String errorCode;
    //错误信息
    private String errorMsg;

    public BizException(BaseExceptionInterface baseExceptionInterface){
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMsg = baseExceptionInterface.getErrorMsg();
    }
}
